package com.tzxscu.hosdrool.models;

import lombok.Data;

@Data
public class BillItems {
    private String item_name;
    private String item_code;
    private String item_no;
    private double amount;
    private String item_spec;
    private String billing_datetime;
    private String zf_flag;
    private String retmsg;
    private boolean retflag;

    public BillItems(String item_code, double amount, String billing_datetime,String item_name){
        this.item_code=item_code;
        this.item_name = item_name;
        this.amount = amount;
        this.billing_datetime = billing_datetime;
        this.retflag = false;
    }

    @Override
    public String toString(){
        return "{" +
                "\"item_code\"=\"" + item_code + '\"' +
                ", \"amount\"=" + amount +
                ", \"billing_datetime\"=\"" + billing_datetime + '\"' +
                ", \"item_name\"=\"" + item_name + '\"' +
                ", \"retmsg\"=\"" + retmsg + '\"' +
                ", \"retflag\"=\"" + retflag + '\"' +
                '}';
    }
}
